package homework016;

import org.dom4j.DocumentException;

import java.util.HashMap;
import java.util.Set;

/**
 * @author 32803
 */
public class Main {

    public static void main(String[] args) throws DocumentException {
        HashMap<String, String> mapping = XmlUtils.mapping("src\\day17\\homework016\\request.xml");
        System.out.println("入参：");

        // 获得hashmap所有的key
        Set<String> strings = mapping.keySet();
        for (String string : strings) {
            System.out.println(mapping.get(string));
        }


        HashMap<String, String> mapping2 = XmlUtils.mapping("src\\day17\\homework016\\response.xml");
        System.out.println("出参：");
        Set<String> keySet2 = mapping2.keySet();
        for (String s2 : keySet2) {
            System.out.println(s2 + ":" + mapping2.get(s2));
        }
    }

}
